package com.bestcem.xm.award.controller.param.award;

import com.bestcem.xm.common.core.constant.RegTypes;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 获取奖项等级、奖项名称(筛选条件) 请求参数
 * @author sh.pei <sh.pei@idiaoyan.com>
 * @version v3.0
 * @date 2021/8/19 17:35
 */
@NoArgsConstructor
@Getter
@Setter
@ToString
public class ListAwardLevelNamesParam implements Serializable {

    /**
     * 奖励id
     */
    @JsonProperty(value = "award_id")
    @NotBlank(message = "奖励id为空！")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "奖励id异常！")
    private String awardId;

    /**
     * 是否查询奖项等级
     */
    @JsonProperty(value = "query_level")
    private Boolean queryLevel = false;

    /**
     * 是否查询奖项名称
     */
    @JsonProperty(value = "query_name")
    private Boolean queryName = false;
}
